/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entidades;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author renan
 */
@Entity
@Table(name = "USUARIO")
public class Usuario implements Serializable {

    public static final String NIVEL_ADMINISTRADOR = "1";
    public static final String NIVEL_GERENTE = "2";
    public static final String NIVEL_CLIENTE = "3";

    @Id
    @Column(name ="USID")
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private String id;
    @Column(name ="USNOME")
    private String nome;
    @Column(name ="USLOGIN")
    private String login;
    @Column(name ="USNIVEL")
    private String nivel;
    @Column(name ="USSENHA")
    private String senha;
    @Column(name ="USSITUACAO")
    private String situacao;

   

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getNivel() {
        return nivel;
    }

    public void setNivel(String nivel) {
        this.nivel = nivel;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }

    public String getSituacao() {
        return situacao;
    }

    public void setSituacao(String situacao) {
        this.situacao = situacao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Usuario other = (Usuario) obj;
        if ((this.id == null) ? (other.id != null) : !this.id.equals(other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5435;
        hash = 31 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }



}
